Version 3.0 User's Guide |
|
HTML |
Previous |
Next Contents |
Figure 7: The HTML page of the NetCloak Web admin interface.
Very often, a Web server administrator wants to include a standard header or footer on every page on their Web site. NetCloak makes this a snap with its MACRO and MODEMACRO commands. However, this requires you to insert the macro command into the top and bottom of every page by hand. If you have hundreds or thousands of existing pages, this becomes a daunting task. Also, you cannot add macro commands to pages whose content you do not control, including pages that are generated on-the-fly by back-end CGIs or plug-ins.
In those situations, you can use NetCloak AutoMacros. As the name suggests, AutoMacros are macros that are automatically added to Web pages processed by NetCloak. You may define a header AutoMacro and a footer AutoMacro.
Header - Enter into this field the name of a macro contained in the "NetCloak.macros" file, or the path to a macro file, using the exact same syntax as you would for the filepath parameter in a MACRO or MODEMACRO command. When this field is filled in, NetCloak inserts an equivalent MODEMACRO command into each cloaked page, just after the <BODY> tag that begins the page content. If no <BODY> tag is present in the page, NetCloak looks for a </HEAD> tag, and then a <HTML> tag. If none of these tags is present, NetCloak inserts the header AutoMacro at the top of the page.
Footer - Similarly, this field contains the name or filepath of a MODEMACRO to be inserted into each cloaked page, just before the </BODY> tag that ends the page content. If no </BODY> tag is present, it looks for a </HTML> tag. If neither tag is present, the footer AutoMacro is added to the bottom of the page.
If you do not wish to use AutoMacros, then leave these two fields empty.
Date - Use this popup menu to set the default date format used by INSERT_DATE and other NetCloak commands that insert dates. The first item in the menu displays your server's current Short Date format, and the second item displays your server's current Long Date format. The Short Date and Long Date formats are defined in the Mac OS Date & Time control panel on the server. See the Date and Time control panel's "Date Formats" setting to configure the short and long date formats. The default date format may be overridden within each NetCloak date command that has a format parameter.
Time - This popup menu displays the Short Time format and the Long Time format currently configured on your server. When the Short Time menu item is selected, all times inserted by NetCloak commands such as INSERT_TIME will be shown as hours and minutes, without seconds. When the Long Time format is selected, times will be displayed with seconds. The time formats displayed in the popup menu are configured in the Mac OS Date & Time control panel on the server. The default time format may be overridden within each NetCloak time command that has a format parameter.
Enable Dynamic Caching - NetCloak supports a dynamic file cache that will automatically store your most frequently accessed files in RAM for faster retrieval and serving. The files NetCloak will store in RAM are selected based upon the amount of available RAM and the frequency with which files are accessed. To disable this feature, uncheck this box.
Flush Dynamic Cache - Use this button (CGI) or link(in the Web admin interface) to immediately force NetCloak to remove all cached files from its dynamic cache. This forces NetCloak to re-read all files from disk again, and frees up RAM in the application heap.
Reload Documents - Use this button (CGI) or link (in the Web admin interface) to tell NetCloak to re-read all files that are normally read and loaded into RAM at startup. This includes:
Copyright © 1996-1999 Maxum Development Corporation http://www.maxum.com/ |
Previous |
Next Contents |